/**
 * Created by ztt on 2018/12/18.
 */
const object1 = {a: 1, b: 2, c: 3};
const object2 = Object.assign({c: 4, d: 5}, object1);
const object3 = Object.assign( object1,{c: 4, d: 5},{c: 46});
console.log(JSON.stringify(object1));
console.log(JSON.stringify(object2));
console.log(JSON.stringify(object3));